package com.zqweb.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

@SpringBootApplication
@MapperScan("com.zqweb.gulimall.product.dao") // 扫描dao所在的包
@EnableDiscoveryClient // 开启服务发现与注册
@EnableFeignClients(basePackages = "com.zqweb.gulimall.product.feign")// 开启feign的远程服务调用支持，并指定扫描feign接口的包路径
@EnableRedisHttpSession // 开启SpringSession的Redis存储
@EnableCaching // 开启缓存功能
public class Product_MainApplication {
    public static void main(String[] args) {
        new SpringApplication(Product_MainApplication.class).run(args);
    }
}
